package com.ct.rbac.orm;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_menus")
public class SysMenusDO implements Serializable {

    @TableId
    private Long id;
    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    // 更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //父菜单ID
    private Long parentId;

    //路由path
    private String path;

    //路由name 用于国际化处理
    private String name;

    //是否隐藏 1显示 0隐藏
    private Integer hidden;

    //排序标记
    private Integer sorted;

    //对应前端文件路径
    private String icon;

    //菜单名称
    private String title;
}
